home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connectio…eloper Series 2005 March / Dev.CD Mar 05.iso / Utilities / Java / Java Web Start.app / Contents / Resources / English.lproj / JWSHelp / shrd / nav.js
Encoding:
Text File  |  2003-07-03  |  621 b   |  27 lines

  1. function set_links() {
  2.     for(var i = 0; i < document.links.length; i++) {
  3.         document.links[i].onmousedown = highlight;
  4.     }
  5.     
  6.     var last_highlighted;
  7.     var last_display;
  8.     var last_color;
  9.     
  10.     var topic_title;
  11.     var page_title;
  12. }
  13.  
  14. function highlight() {
  15.     if (last_highlighted) {
  16.         last_highlighted.style.display = last_display;
  17.         last_highlighted.style.color = last_color;
  18.     }
  19.  
  20.     last_highlighted = this;
  21.     last_display = this.style.display;
  22.     last_color = this.style.color;
  23.     topic_title = this.text;
  24.  
  25.     this.style.display = "block";
  26.     this.style.color = "#ff4500";
  27. }